<div id="eventsTable">
<table width="100%" cellspacing="0" cellpadding="0" border="0" class="scrollTable">
<thead class="fixedHeader">
	<tr class="titleRow">
		<th colspan="6"><h3>Events&nbsp;&nbsp;&nbsp;(<?php echo $total?>)</h3></th>
    </tr>
	<tr class="alternateRow">
		<th>Title</th>
		<th>Date</th>
		<th>Start Time</th>
        <th>End Time</th>
        <th>File</th>
        <th></th>
	</tr>
</thead>
<tbody class="scrollContent">
      <?php		

$i = 0;

// Get each row of data on each iteration until
// there is no more rows
	 
	 while ($row = mysql_fetch_assoc($result))
	{
	
	
		if ($i%2 == 0) 
		{
		$rowcolor="$reprowcolor";
		} else 
		{
		$rowcolor="#EEE";
		}
		?>
      <tr onclick="DoNav('eventsform.php?id=<?php echo $row[id]?>');" onmouseover="this.bgColor='#c2e7fb';" onmouseout="this.bgColor='<?php echo $rowcolor?>';" bgcolor="<?php echo $rowcolor?>" class="eventRow" id="<?php echo $row[id]?>">
        <td><?php echo "$row[title]";?>        </td>
        <td><?php echo "$row[eventDate]";?></td>
        <td><?php echo "$row[eventStartTime]";?></td>
        <td><?php echo "$row[eventEndTime]";?></td>
        <td><?php echo "$row[file]";?></td>
        <td><a href="deleteform.php?id=<?php echo $row['id']; ?>&table=<?php echo $table; ?>&returnTo=<?php echo $ifDeleteReturnTo ?>" title="Delete"><img src="../images/delete_button.png" /></a></td>
      </tr>
      <?php
	$i++;						
	}

?>
</tbody>
</table>
</div>